<?xml version="1.0"?>
<component name="org.nuxeo.theme.nuxeo.default.override">

  <require>org.nuxeo.theme.nuxeo.default</require>

  <extension point="negotiations" target="org.nuxeo.theme.services.ThemeService">

    <negotiation object="theme" strategy="nuxeo5">
      <scheme>org.nuxeo.theme.jsf.negotiation.theme.RequestParameter</scheme>
      <scheme>org.nuxeo.theme.jsf.negotiation.theme.CookieValue</scheme>
      <scheme>org.nuxeo.theme.jsf.negotiation.theme.ViewId</scheme>
      <!-- local theme (specific to nuxeo5) -->
      <scheme>org.nuxeo.ecm.localconf.LocalTheme</scheme>
      <scheme>org.nuxeo.theme.jsf.negotiation.theme.DefaultTheme</scheme>
    </negotiation>

    <negotiation object="perspective" strategy="nuxeo5">
      <scheme>
        org.nuxeo.theme.jsf.negotiation.perspective.RequestParameter
      </scheme>
      <scheme>org.nuxeo.theme.jsf.negotiation.perspective.CookieValue</scheme>
      <scheme>org.nuxeo.theme.jsf.negotiation.perspective.ViewId</scheme>
      <!-- local perspective (specific to nuxeo5) -->
      <scheme>
        org.nuxeo.ecm.localconf.LocalPerspective
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.perspective.DefaultPerspective
      </scheme>
    </negotiation>

    <negotiation object="collection" strategy="nuxeo5">
      <scheme>
        org.nuxeo.theme.jsf.negotiation.collection.RequestParameter
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.collection.CookieValue
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.collection.RequestAttribute
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.collection.ViewId
      </scheme>
      <!-- local flavor/collection (specific to nuxeo5) -->
      <scheme>
        org.nuxeo.ecm.localconf.LocalThemeFlavor
      </scheme>
      <!-- default flavor/collection (specific to nuxeo5) -->
      <scheme>
        org.nuxeo.ecm.webapp.webcontainer.DefaultThemeFlavor
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.collection.UnspecifiedCollection
      </scheme>
    </negotiation>

  </extension>

</component>
